import Vue from 'vue'
import Vuex from 'vuex';
Vue.use(Vuex);
const store = new Vuex.Store({
    state:{
        title:'',
        cardUrl:'',
        pieceId:'',
        applNo:'',
        detailId:''
    },
    mutations:{
        cardUrl:function(state,payload){
            state.cardUrl = payload
        },
        pieceId:function(state,payload){
            state.pieceId = payload
        },
        applNo:function(state,payload){
            state.applNo = payload
        },
        detailId:function(state,payload){
            state.detailId = payload
        },
        title:function(state,payload){
            state.title = payload
        }
    }
})

export default store;